package com.cmc.cloud.cmclink.doc.vo.blnoruleklcodevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 订舱号提单号规则 三位码 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlnoRuleKlcodeBaseVO {

    @Schema(description = "订舱人代码;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoRuleKlcodeBaseVO.bkpCode.NotBlank}")
    @Length(max = 50, message = "{BlnoRuleKlcodeBaseVO.bkpCode.Length}")
    private String bkpCode;

    @Schema(description = "订舱人提单号三位码;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoRuleKlcodeBaseVO.bkpBlnoCode.NotBlank}")
    @Length(max = 3, message = "{BlnoRuleKlcodeBaseVO.bkpBlnoCode.Length}")
    private String bkpBlnoCode;

    @Schema(description = "是否启用;", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{BlnoRuleKlcodeBaseVO.enable.NotNull}")
    private Boolean enable;

}
